<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>首页</title>
    <!-- 引入Bootstrap CSS -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css">
    <!-- 引入Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <!-- 自定义样式 -->
    // ... existing code ...
    <!-- 自定义样式 -->
    <style>
        :root {
            --primary-color: #667eea;
            --primary-dark: #5a67d8;
            --secondary-color: #764ba2;
            --accent-color: #f093fb;
            --text-dark: #2d3748;
            --text-light: #4a5568;
            --bg-light: #f8f9fa;
            --bg-white: #ffffff;
            --shadow-light: 0 4px 20px rgba(0,0,0,0.08);
            --shadow-medium: 0 8px 30px rgba(0,0,0,0.12);
            --shadow-heavy: 0 15px 40px rgba(0,0,0,0.15);
        }

        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
            min-height: 100vh;
        }

        .header {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: white;
            padding: 100px 0 80px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
        }

        .header h1 {
            font-size: 3rem;
            font-weight: 700;
            margin-bottom: 20px;
            text-shadow: 0 2px 10px rgba(0,0,0,0.2);
            position: relative;
        }

        .header p {
            font-size: 1.3rem;
            opacity: 0.95;
            max-width: 700px;
            margin: 0 auto 30px;
            line-height: 1.6;
            position: relative;
        }

        .card {
            border: none;
            border-radius: 15px;
            box-shadow: var(--shadow-light);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            margin-bottom: 30px;
            background: var(--bg-white);
            overflow: hidden;
            position: relative;
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
        }

        .card:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: var(--shadow-heavy);
        }

        .card-icon {
            font-size: 3.5rem;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 25px;
            display: inline-block;
        }

        .btn-custom {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: white;
            border: none;
            padding: 14px 32px;
            font-size: 1.1rem;
            font-weight: 600;
            border-radius: 50px;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .btn-custom::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 0.5s;
        }

        .btn-custom:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
            color: white;
            text-decoration: none;
        }

        .btn-custom:hover::before {
            left: 100%;
        }

        .feature-section {
            padding: 100px 0;
            background: transparent;
        }

        .feature-title {
            font-size: 1.6rem;
            font-weight: 700;
            margin-bottom: 15px;
            color: var(--text-dark);
            line-height: 1.3;
        }

        .feature-desc {
            color: var(--text-light);
            line-height: 1.7;
            font-size: 1rem;
        }

        .footer {
            background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
            color: white;
            padding: 50px 0;
            text-align: center;
            position: relative;
        }

        .footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        }

        .footer p {
            margin-bottom: 0;
            opacity: 0.9;
            font-size: 1rem;
        }

        /* 响应式调整 */
        @media (max-width: 768px) {
            .header {
                padding: 60px 0 40px;
            }

            .header h1 {
                font-size: 2.2rem;
            }

            .header p {
                font-size: 1.1rem;
            }

            .feature-section {
                padding: 60px 0;
            }

            .card {
                margin-bottom: 20px;
            }
        }

        /* 动画效果 */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .card, .header h1, .header p {
            animation: fadeInUp 0.6s ease-out;
        }

        .card:nth-child(1) { animation-delay: 0.1s; }
        .card:nth-child(2) { animation-delay: 0.2s; }
        .card:nth-child(3) { animation-delay: 0.3s; }
    </style>

</head>
<body>
<!-- 头部区域 -->
<div class="header">
    <div class="container">
        <h1>系统管理平台</h1>
        <p>欢迎使用系统管理平台，点击下方按钮选择进行功能调试</p>
        <a href="api-debug.jsp" class="btn-custom mt-4">
            <i class="fas fa-tools mr-2"></i>前往进行API调试
        </a>
    </div>
</div>

<!-- 功能特点区域 -->
<div class="feature-section">
    <div class="container">
        <div class="row">
            <!-- 功能卡片1 -->
            <div class="col-lg-4 col-md-6">
                <div class="card p-5 text-center">
                    <div class="card-icon">
                        <i class="fas fa-user-shield"></i>
                    </div>
                    <h3 class="feature-title">用户管理</h3>
                    <p class="feature-desc">查询用户信息及角色权限，支持多条件搜索和分页功能</p>
                    <a href="api-debug.jsp#userSection" class="btn-custom mt-3">
                        <i class="fas fa-chevron-right mr-1"></i>查看详情
                    </a>
                </div>
            </div>

            <!-- 功能卡片2 -->
            <div class="col-lg-4 col-md-6">
                <div class="card p-5 text-center">
                    <div class="card-icon">
                        <i class="fas fa-user-tag"></i>
                    </div>
                    <h3 class="feature-title">角色管理</h3>
                    <p class="feature-desc">查询角色信息及关联菜单，支持角色权限配置</p>
                    <a href="api-debug.jsp#roleSection" class="btn-custom mt-3">
                        <i class="fas fa-chevron-right mr-1"></i>查看详情
                    </a>
                </div>
            </div>

            <!-- 功能卡片3 -->
            <div class="col-lg-4 col-md-6">
                <div class="card p-5 text-center">
                    <div class="card-icon">
                        <i class="fas fa-code"></i>
                    </div>
                    <h3 class="feature-title">API调试</h3>
                    <p class="feature-desc">提供完整的API接口测试功能，支持实时查看接口响应</p>
                    <a href="api-debug.jsp#debugSection" class="btn-custom mt-3">
                        <i class="fas fa-chevron-right mr-1"></i>开始调试
                    </a>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- 页脚区域 -->
<div class="footer">
    <div class="container">
        <p>&copy; 2023 系统管理平台 - 版权所有</p>
    </div>
</div>

<!-- 引入必要的JavaScript -->
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.min.js"></script>
</body>
</html>